<?php if( sizeof( $this->messages )  > 0){

    
?>


<div class="alert alert-dismissable <?php echo $this->class; ?> ">
    <button type="button" class="close" data-dismiss="alert">×</button>
    <h4>
       <?php 
       if(is_array($this->messages)){
           foreach ($this->messages as $msg){
               echo $msg."<br>";
           }
        }
        else{
            echo $this->messages;
        }?>
    </h4>
</div>
<?php }?>